<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        .box{
            width: 300px;
            height: 50px;
            border: 1px solid red;
            /*overflow: scroll;*/
            /*overflow-y:scroll;*/
            overflow: hidden;


        }


        
        
    </style>
</head>
<body>


    <div class="box">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur error fugit id incidunt libero magni officia quaerat quos sapiente voluptatum? Cum error ipsum sapiente vel velit. Consequatur ipsum magnam quam.
    </div>


</body>
</html>